<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Manage | 用户信息</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Pace -->
    <link rel="stylesheet" href="../../plugins/AdminLTE/plugins/pace-master/themes/blue/pace-theme-flash.css">
    <script type="text/javascript" src="../../plugins/AdminLTE/plugins/pace-master/pace.min.js"></script>
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="../../plugins/AdminLTE/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="../../plugins/AdminLTE/dist/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="../../plugins/AdminLTE/dist/css/ionicons.min.css">
    <!-- bootstrap table -->
    <link rel="stylesheet" href="../../plugins/AdminLTE/plugins/bootstrap-table/bootstrap-table.css">
    <!-- treeview -->
    <link rel="stylesheet" href="../../plugins/treeview/bootstrap-treeview.min.css">
    <!-- iCheck -->
    <link rel="stylesheet" href="../../plugins/AdminLTE/plugins/iCheck/all.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="../../plugins/AdminLTE/dist/css/AdminLTE.min.css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body class="hold-transition skin-blue sidebar-mini">
<section class="content-header">
    <h1 class="tab-title-name"></h1>
    <ol class="breadcrumb">
        <li><i class="fa fa-home"></i> Home</li>
        <li>组织架构</li>
        <li>用户管理</li>
        <li class="tab-title-name"></li>
    </ol>
</section>

<section class="content">
    <div class="box box-default">
        <div class="box-header">
            <h3 class="box-title">基本信息</h3>
            <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse">
                    <i class="fa fa-minus"></i>
                </button>
            </div>
        </div>
        <div class="box-body">
            <form id="form-organ" onsubmit="return false" class="col-xs-12">
                <input style="display: none" name="id" type="text">
                <div class="form-group col-xs-12 col-md-6">
                    <div class="input-group">
                        <div class="input-group-addon">所属机构<i class="text-red">*</i></div>
                        <input style="display: none" name="organizationId" type="text" class="form-control">
                        <input name="organizationName" type="text" readonly class="form-control">
                        <div data-toggle="modal" data-target="#organTreeModal" class="input-group-addon btn"><i
                                class="fa fa-search"></i></div>
                    </div>
                </div>
                <div class="form-group col-xs-12 col-md-6">
                    <div class="input-group">
                        <div class="input-group-addon">用户类型<i class="text-red">*</i></div>
                        <select id="user_type" name="type" class="form-control"></select>
                    </div>
                </div>
                <div class="form-group col-xs-12 col-md-6">
                    <div class="input-group">
                        <div class="input-group-addon">登录账号<i class="text-red">*</i></div>
                        <input name="account" type="text" class="form-control">
                    </div>
                </div>
                <div class="form-group col-xs-12 col-md-6">
                    <div class="input-group">
                        <div class="input-group-addon">用户名<i class="text-red">*</i></div>
                        <input name="username" type="text" class="form-control">
                        <div class="input-group-addon"><i class="fa fa-user"></i></div>
                    </div>
                </div>
                <div class="form-group col-xs-12 col-md-6">
                    <div class="input-group">
                        <div class="input-group-addon">性别</div>
                        <div class="form-control">
                            <label>
                                <input type="radio" name="sex" value="男" checked>男
                            </label>
                            <label style="margin-left: 10px">
                                <input type="radio" name="sex" value="女">女
                            </label>
                        </div>
                        <div class="input-group-addon"><i class="fa fa-intersex"></i></div>
                    </div>
                </div>
                <div class="form-group col-xs-12 col-md-6">
                    <div class="input-group">
                        <div class="input-group-addon">电子邮箱</div>
                        <input name="mailbox" type="text" class="form-control">
                        <div class="input-group-addon"><i class="fa fa-envelope"></i></div>
                    </div>
                </div>
                <div class="form-group col-xs-12 col-md-6">
                    <div class="input-group">
                        <div class="input-group-addon">手机号码</div>
                        <input name="phone" type="tel" class="form-control">
                        <div class="input-group-addon"><i class="fa fa-mobile-phone"></i></div>
                    </div>
                </div>
                <div class="form-group col-xs-12 col-md-6">
                    <div class="input-group">
                        <div class="input-group-addon">办公电话</div>
                        <input name="officePhone" type="text" class="form-control">
                        <div class="input-group-addon"><i class="fa fa-phone"></i></div>
                    </div>
                </div>
                <div class="form-group col-xs-12">
                    <div class="input-group">
                        <div class="input-group-addon">描述</div>
                        <textarea name="description" class="form-control" style="height: 150px"></textarea>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="box box-default">
        <div class="box-header text-center">
            <h3 class="box-title pull-left">分配角色</h3>
            <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse">
                    <i class="fa fa-minus"></i>
                </button>
            </div>
        </div>
        <div class="box-body">
            <table id="roles_data" class="table-bordered table-condensed"></table>
        </div>
    </div>
    <div class="col-xs-12 text-center margin-bottom">
        <button onclick="submitUser()" class="btn btn-info">提交</button>
    </div>
</section>

<div id="organTreeModal" class="modal fade">
    <div class="modal-dialog" style="width: 290px;">
        <div class="modal-content">
            <div class="modal-header">
                <div class="pull-right">
                    <button type="button" class="btn btn-xs btn-primary" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">确认</span></button>
                </div>
                <h4 class="modal-title">选择所属机构</h4>
            </div>
            <div class="modal-body" style="width: 290px; max-height: 310px; overflow-y: scroll">
                <div id="organTree"></div>
            </div>
        </div>
    </div>
</div>

<!-- jQuery 2.2.3 -->
<script src="../../plugins/AdminLTE/plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- jQuery UI -->
<script src="../../plugins/AdminLTE/plugins/jQueryUI/jquery-ui.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="../../plugins/AdminLTE/bootstrap/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="../../plugins/AdminLTE/plugins/fastclick/fastclick.js"></script>
<!-- bootstrap table -->
<script src="../../plugins/AdminLTE/plugins/bootstrap-table/bootstrap-table.js"></script>
<script src="../../plugins/AdminLTE/plugins/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<!-- treeview -->
<script src="../../plugins/treeview/bootstrap-treeview.min.js"></script>
<!-- iCheck -->
<script src="../../plugins/AdminLTE/plugins/iCheck/icheck.js"></script>
<!-- AdminLTE App -->
<script src="../../plugins/AdminLTE/dist/js/app.min.js"></script>
<script src="../../statics/js/user-manage-info.js"></script>
<script>
    $(".tab-title-name").html(top.findTabTitle(top.getActivePageId()).context.text);
</script>
</body>
</html>
